<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <input type="hidden" name="row[id]" value="{$row.id|htmlentities}">
    <div class="form-group">
        <div class="form-group">
            <label for="c-oldversion" class="control-label col-xs-12 col-sm-2">旧版本号:</label>
            <div class="col-xs-12 col-sm-4">
                <input id="c-oldversion" data-rule="required" class="form-control" name="row[oldversion]" type="text" value="{$row.oldversion|htmlentities}">
            </div>
        </div>
        <div class="form-group">
            <label for="c-newversion" class="control-label col-xs-12 col-sm-2">新版本号:</label>
            <div class="col-xs-12 col-sm-4">
                <input id="c-newversion" data-rule="required" class="form-control" name="row[newversion]" type="text" value="{$row.newversion|htmlentities}">
            </div>
        </div>
        <div class="form-group">
            <label for="c-packagesize" class="control-label col-xs-12 col-sm-2">安装包大小:</label>
            <div class="col-xs-12 col-sm-4">
                <input id="c-packagesize" data-rule="required" class="form-control" name="row[packagesize]" type="text" value="{$row.packagesize|htmlentities}">
            </div>
        </div>
        <div class="form-group">
            <label for="c-content" class="control-label col-xs-12 col-sm-2">版本内容:</label>
            <div class="col-xs-12 col-sm-4">
                <textarea id="c-content" data-rule="required" class="form-control" name="row[content]" type="text">{$row.content|htmlentities}</textarea>
            </div>
        </div>
        <div class="form-group">
            <label for="c-downloadurl" class="control-label col-xs-12 col-sm-2">上传安装包:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-downloadurl" data-rule="required" class="form-control" size="50" name="row[downloadurl]" type="text" value="{$row.downloadurl|htmlentities}">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload-downloadurl" class="btn btn-danger faupload" data-input-id="c-downloadurl"   data-mimetype="apk" data-multiple="false" data-preview-id="p-downloadurl"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-downloadurl"></span>
                </div>
                <ul class="row list-inline faupload-preview" id="p-downloadurl"></ul>
            </div>
        </div>
        <div class="form-group">
            <label for="c-enforce" class="control-label col-xs-12 col-sm-2">是否强制更新:</label>
            <div class="col-xs-12 col-sm-4">
                {$enforceList}
            </div>
        </div>
        <div class="form-group layer-footer">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 col-sm-8">
                <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
                <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
            </div>
        </div>
    </div>
</form>
